<?php 
	include './setPhp.php';
	$data = include './data.php';
	if(is_post()){
		if(!$_POST['uname']||!$_POST['con']){echo "<script>location.href='./index.php';</script>";return;}
	$dat = $_POST;
	$dat['date'] = date('Y-m-d H:i:s');
	$dat['zan'] = 0;
	$dat['cai'] = 0;
	$data[] = $dat; 
	data_to_file('./data.php',  $data);
	}
	echo "<script>location.href='./index.php';</script>";
 ?>